package com.iot.platform.api.domain.mapping;

import com.iot.platform.api.domain.*;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

public class _MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("iot_instance", "id", Instance.class);
		arp.addMapping("iot_instance_dev_setting", "id", InstanceDevSetting.class);
		arp.addMapping("iot_product", "id", Product.class);
		arp.addMapping("iot_device", "id", Device.class);
		arp.addMapping("iot_device_group", "id", DeviceGroup.class);
		arp.addMapping("iot_device_group_relation", "group_id,device_id", DeviceGroupRelation.class);
		arp.addMapping("iot_product_category", "id", ProductCategory.class);

		arp.addMapping(ThingAbility.TABLE_NAME, "id", ThingAbility.class);
		arp.addMapping(ThingAbilityModule.TABLE_NAME, "id", ThingAbilityModule.class);

		arp.addMapping("iot_product_topic", "id", ProductTopic.class);
		arp.addMapping("iot_subscription", "id", Subscription.class);
		// arp.addMapping(DeviceLog.TABLE_NAME, "id", DeviceLog.class);

		arp.addMapping(DeviceShadow.TABLE_NAME, "id", DeviceShadow.class);
		arp.addMapping(Rule.TABLE_NAME, "id", Rule.class);

	}
}
